using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ShakeTranImgGetItem : GeneratedMessageLite<ShakeTranImgGetItem, ShakeTranImgGetItem.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ShakeTranImgGetItem, ShakeTranImgGetItem.Builder>
		{
			private bool resultIsReadOnly;
			private ShakeTranImgGetItem result;
			protected override ShakeTranImgGetItem.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ShakeTranImgGetItem MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ShakeTranImgGetItem DefaultInstanceForType
			{
				get
				{
					return ShakeTranImgGetItem.DefaultInstance;
				}
			}
			public string WebUrl
			{
				get
				{
					return this.result.WebUrl;
				}
				set
				{
					this.SetWebUrl(value);
				}
			}
			public string ThumbUrl
			{
				get
				{
					return this.result.ThumbUrl;
				}
				set
				{
					this.SetThumbUrl(value);
				}
			}
			public string ImgUrl
			{
				get
				{
					return this.result.ImgUrl;
				}
				set
				{
					this.SetImgUrl(value);
				}
			}
			public Builder()
			{
				this.result = ShakeTranImgGetItem.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ShakeTranImgGetItem cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ShakeTranImgGetItem PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ShakeTranImgGetItem other = this.result;
					this.result = new ShakeTranImgGetItem();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ShakeTranImgGetItem.Builder Clear()
			{
				this.result = ShakeTranImgGetItem.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ShakeTranImgGetItem.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ShakeTranImgGetItem.Builder(this.result);
				}
				return new ShakeTranImgGetItem.Builder().MergeFrom(this.result);
			}
			public override ShakeTranImgGetItem BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ShakeTranImgGetItem.Builder MergeFrom(IMessageLite other)
			{
				if (other is ShakeTranImgGetItem)
				{
					return this.MergeFrom((ShakeTranImgGetItem)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ShakeTranImgGetItem.Builder MergeFrom(ShakeTranImgGetItem other)
			{
				return this;
			}
			public override ShakeTranImgGetItem.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ShakeTranImgGetItem.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ShakeTranImgGetItem._shakeTranImgGetItemFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ShakeTranImgGetItem._shakeTranImgGetItemFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							this.result.hasWebUrl = input.ReadString(ref this.result.webUrl_);
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							this.result.hasThumbUrl = input.ReadString(ref this.result.thumbUrl_);
							continue;
						}
						if (num3 == 26u)
						{
							this.result.hasImgUrl = input.ReadString(ref this.result.imgUrl_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ShakeTranImgGetItem.Builder SetWebUrl(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasWebUrl = true;
				this.result.webUrl_ = value;
				return this;
			}
			public ShakeTranImgGetItem.Builder ClearWebUrl()
			{
				this.PrepareBuilder();
				this.result.hasWebUrl = false;
				this.result.webUrl_ = "";
				return this;
			}
			public ShakeTranImgGetItem.Builder SetThumbUrl(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasThumbUrl = true;
				this.result.thumbUrl_ = value;
				return this;
			}
			public ShakeTranImgGetItem.Builder ClearThumbUrl()
			{
				this.PrepareBuilder();
				this.result.hasThumbUrl = false;
				this.result.thumbUrl_ = "";
				return this;
			}
			public ShakeTranImgGetItem.Builder SetImgUrl(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasImgUrl = true;
				this.result.imgUrl_ = value;
				return this;
			}
			public ShakeTranImgGetItem.Builder ClearImgUrl()
			{
				this.PrepareBuilder();
				this.result.hasImgUrl = false;
				this.result.imgUrl_ = "";
				return this;
			}
		}
		public const int WebUrlFieldNumber = 1;
		public const int ThumbUrlFieldNumber = 2;
		public const int ImgUrlFieldNumber = 3;
		private static readonly ShakeTranImgGetItem defaultInstance;
		private static readonly string[] _shakeTranImgGetItemFieldNames;
		private static readonly uint[] _shakeTranImgGetItemFieldTags;
		private bool hasWebUrl;
		private string webUrl_ = "";
		private bool hasThumbUrl;
		private string thumbUrl_ = "";
		private bool hasImgUrl;
		private string imgUrl_ = "";
		private int memoizedSerializedSize = -1;
		public static ShakeTranImgGetItem DefaultInstance
		{
			get
			{
				return ShakeTranImgGetItem.defaultInstance;
			}
		}
		public override ShakeTranImgGetItem DefaultInstanceForType
		{
			get
			{
				return ShakeTranImgGetItem.DefaultInstance;
			}
		}
		protected override ShakeTranImgGetItem ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string WebUrl
		{
			get
			{
				return this.webUrl_;
			}
		}
		public string ThumbUrl
		{
			get
			{
				return this.thumbUrl_;
			}
		}
		public string ImgUrl
		{
			get
			{
				return this.imgUrl_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasWebUrl)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.WebUrl);
				}
				if (this.hasThumbUrl)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ThumbUrl);
				}
				if (this.hasImgUrl)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.ImgUrl);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ShakeTranImgGetItem()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] shakeTranImgGetItemFieldNames = ShakeTranImgGetItem._shakeTranImgGetItemFieldNames;
			if (this.hasWebUrl)
			{
				output.WriteString(1, shakeTranImgGetItemFieldNames[2], this.WebUrl);
			}
			if (this.hasThumbUrl)
			{
				output.WriteString(2, shakeTranImgGetItemFieldNames[1], this.ThumbUrl);
			}
			if (this.hasImgUrl)
			{
				output.WriteString(3, shakeTranImgGetItemFieldNames[0], this.ImgUrl);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasWebUrl)
			{
				num ^= this.webUrl_.GetHashCode();
			}
			if (this.hasThumbUrl)
			{
				num ^= this.thumbUrl_.GetHashCode();
			}
			if (this.hasImgUrl)
			{
				num ^= this.imgUrl_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ShakeTranImgGetItem shakeTranImgGetItem = value as ShakeTranImgGetItem;
			return shakeTranImgGetItem != null && (this.hasWebUrl == shakeTranImgGetItem.hasWebUrl && (!this.hasWebUrl || this.webUrl_.Equals(shakeTranImgGetItem.webUrl_))) && (this.hasThumbUrl == shakeTranImgGetItem.hasThumbUrl && (!this.hasThumbUrl || this.thumbUrl_.Equals(shakeTranImgGetItem.thumbUrl_))) && (this.hasImgUrl == shakeTranImgGetItem.hasImgUrl && (!this.hasImgUrl || this.imgUrl_.Equals(shakeTranImgGetItem.imgUrl_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ShakeTranImgGetItem, ShakeTranImgGetItem.Builder>.PrintField("WebUrl", this.hasWebUrl, this.webUrl_, writer);
			GeneratedMessageLite<ShakeTranImgGetItem, ShakeTranImgGetItem.Builder>.PrintField("ThumbUrl", this.hasThumbUrl, this.thumbUrl_, writer);
			GeneratedMessageLite<ShakeTranImgGetItem, ShakeTranImgGetItem.Builder>.PrintField("ImgUrl", this.hasImgUrl, this.imgUrl_, writer);
		}
		public static ShakeTranImgGetItem ParseFrom(byte[] data)
		{
			return ShakeTranImgGetItem.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ShakeTranImgGetItem MakeReadOnly()
		{
			return this;
		}
		public static ShakeTranImgGetItem.Builder CreateBuilder()
		{
			return new ShakeTranImgGetItem.Builder();
		}
		public override ShakeTranImgGetItem.Builder ToBuilder()
		{
			return ShakeTranImgGetItem.CreateBuilder(this);
		}
		public override ShakeTranImgGetItem.Builder CreateBuilderForType()
		{
			return new ShakeTranImgGetItem.Builder();
		}
		public static ShakeTranImgGetItem.Builder CreateBuilder(ShakeTranImgGetItem prototype)
		{
			return new ShakeTranImgGetItem.Builder(prototype);
		}
		static ShakeTranImgGetItem()
		{
			ShakeTranImgGetItem.defaultInstance = new ShakeTranImgGetItem().MakeReadOnly();
			ShakeTranImgGetItem._shakeTranImgGetItemFieldNames = new string[]
			{
				"ImgUrl",
				"ThumbUrl",
				"WebUrl"
			};
			ShakeTranImgGetItem._shakeTranImgGetItemFieldTags = new uint[]
			{
				26u,
				18u,
				10u
			};
			object.ReferenceEquals(micromsg.Proto.ShakeTranImgGetItem.Descriptor, null);
		}
	}
}
